package com.corticon.client.model;

import java.io.Serializable;
import java.util.List;

import net.sf.json.JSONObject;

public class PutRuleInput implements Serializable {

	private Long dialogInstanceId;// Objs:Table Q_DialogInstance Column
									// q_dialoginstance_id
	private Long dialogId; // Objs:Table Q_Dialog Column q_dialog_id
	private Long pageId; // Objs:Table Q_Page Column q_page_id
	private Long questionId; // Objs:Table Q_Question Column q_question_id
	private String answerId; // Answer Question's Value
	private Long pageinquestionId; // Objs:Table Q_DialogInstance Column
									// lastpagequestionassoc_q_page_question_id_oid
	private String responseId; // If This Question's Response Type is
								// CheckBox,Then it Availability
	private Boolean isNextPage;

	private List<PutRuleInput> questionsData;

	public Long getDialogInstanceId() {
		return dialogInstanceId;
	}

	public void setDialogInstanceId(Long dialogInstanceId) {
		this.dialogInstanceId = dialogInstanceId;
	}

	public Long getDialogId() {
		return dialogId;
	}

	public void setDialogId(Long dialogId) {
		this.dialogId = dialogId;
	}

	public Long getPageId() {
		return pageId;
	}

	public void setPageId(Long pageId) {
		this.pageId = pageId;
	}

	public Long getQuestionId() {
		return questionId;
	}

	public void setQuestionId(Long questionId) {
		this.questionId = questionId;
	}

	public String getAnswerId() {
		return answerId;
	}

	public void setAnswerId(String answerId) {
		this.answerId = answerId;
	}

	public Long getPageinquestionId() {
		return pageinquestionId;
	}

	public void setPageinquestionId(Long pageinquestionId) {
		this.pageinquestionId = pageinquestionId;
	}

	public List<PutRuleInput> getQuestionsData() {
		return questionsData;
	}

	public void setQuestionsData(List<PutRuleInput> questionsData) {
		this.questionsData = questionsData;
	}

	public String getResponseId() {
		return responseId;
	}

	public void setResponseId(String responseId) {
		this.responseId = responseId;
	}

	public JSONObject toJson() {
		return JSONObject.fromObject(this);
	}

	public Boolean getIsNextPage() {
		return isNextPage;
	}

	public void setIsNextPage(Boolean isNextPage) {
		this.isNextPage = isNextPage;
	}

}
